package fr.vvins.core.catalog.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import fr.vvins.core.dao.EntityImpl;


/**
 * Format entity
 */
@Entity
@Table(schema="vvins",name="VV_FORMAT")
public class Format extends EntityImpl implements Serializable {


	private static final long serialVersionUID = -7409749241004098733L;
	@Id
	@GeneratedValue
	@Column(name="id")
	private Integer id;
	
	@Basic
	@Column(name="number")
	private Integer number;
	
	@Basic
	@Column(name="unit")
	private String unit;

	public Format() {
	}

	public Format(Integer number, String unit, Set<VinSku> VinSkus) {
		this.number = number;
		this.unit = unit;
	}

	@Override
	public Integer getId() {
		return this.id;
	}

	@Override
	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

}
